package com.east.service.sale;

import com.east.bean.Contract;
import com.east.utils.Pagenation;
import com.github.pagehelper.Page;

public interface ContractService {
	/**
	 * 分页查询
	 * @param pagenation
	 * @param key
	 * @return
	 */
	Page<Contract> findByPage(Pagenation pagenation ,String key,Integer type,String startTime ,String endTime);
	
	/**
	 * 详情
	 * @param contract
	 * @return
	 */
	Contract  findByOne(Contract contract);
	/**
	 * 添加
	 * @param contract
	 * @return
	 */
	boolean saveContract(Contract contract);
	/**
	 * 修改
	 * @param contract
	 * @return
	 */
	boolean updateContract(Contract contract);
	/**
	 * 删除
	 * @param contract
	 * @return
	 */
	boolean delContract(Contract contract);
	/**
	 * 编号是否存在
	 * @param contract
	 * @return
	 */
	int findByLike(Contract contract);
}
